package com.jacky.api;

class ExampleA extends Exception{}
class ExampleB extends ExampleA{}
class ExampleC extends ExampleB{}

public class ExceptionTests {
    public static void main(String[] args) {
        try {
            throw new ExampleC();
        }catch (ExampleA a){
            System.out.println(a.getClass());
            System.out.println("ExampleA=======》");
        }catch (Exception e) {
            System.out.println("Exception=======》");
        }
    }
}
